package com.heima.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.news.domain.News;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface NewsMapper extends BaseMapper<News> {

    void updateByNoticeId(News tbNews);

    @Delete("delete from tb_news where notice_id in (#{noticeIds})")
    void removeByNoticeIds(Long noticeId);
}
